﻿using System.Data;

namespace ConsoleApplication.TODO
{
    internal class SqlCommandMethodAttribute : System.Attribute
    {
        public SqlCommandMethodAttribute(CommandType cty, string ct)
        {
            commandType = cty;
            commandText = ct;
        }

        public SqlCommandMethodAttribute(CommandType cty) : this(cty, null)
        {
            //卧槽这个语法居然没有错误
        }

        public string commandText { get; set; }
        public CommandType commandType { get; set; }
    }
}